home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000193_news@watsun.cc.columbia.edu _Mon Jun 21 13:18:54 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  1KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA19677
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 21 Jun 1999 13:18:54 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA16810
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 21 Jun 1999 13:18:25 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. Message-ID: <376E6B68.5B08EB3C@asares.com>
  10. From: Brian Corcoran <corcoran@asares.com>
  11. Subject: kerbang parameters not passed?
  12. Date: Mon, 21 Jun 1999 12:42:16 -0400
  13. Organization: NETPLEX Internet Services - http://www.ntplx.net/
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. Hi,
  17.  
  18. I'm trying to set up a c-kermit script to run from the command line
  19. (using the #! notation), but I can't get parameters passed to it. I'm
  20. using c-kermit 7.0.195 b7 on Linux 2.2.10.
  21.  
  22. For example, when I run the following script (kerbang-test.ksc hello
  23. 1234) from the command line:
  24.  
  25. #!/usr/local/bin/kermit
  26. echo begin
  27. echo \%0
  28. echo \%1
  29. echo \%2
  30. echo end
  31. end
  32.  
  33. I get:
  34.  
  35. begin
  36. /home/cork/kerbang-test.ksc
  37.  
  38.  
  39. end
  40.  
  41. However, it works if I take it as a kermit script. Am I doing something
  42. wrong?
  43.  
  44. Thanks,
  45.  
  46. -Brian
  47.